package com.dmz.insclient.client;

import java.util.logging.Logger;

/**
 * @author lee
 */
public class SocketLog implements ISocketLog {

    private static Logger log;
    private static SocketLog slog;

    static {
        log = Logger.getLogger("com.forms.cdt.ScoketLogger");
    }

    public static SocketLog getLog() {
        if (slog == null)
            slog = new SocketLog();
        return slog;
    }

    public void log(String id, String socketName, String message) {
        log.info("  Name:" + socketName + "  Thread:" + id + "  message:" + message);

    }

    public void log(String message) {
        log.info("message:" + message);

    }

}
